﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace EtalkClient
{
    public partial class TestFrom : Form
    {
        ControlFace.User proUser;
        ControlFace.Group proGroup;
        public TestFrom()
        {
            InitializeComponent();
        }
        public TestFrom(ControlFace.User obj,ControlFace.Group groupObj)
        {
            proUser = obj;
            proGroup = groupObj;
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (proUser != null)
                proUser.State = ControlFace.OnlineState.Online;
        }


        //消息
        private void button7_Click(object sender, EventArgs e)
        {
            if (proUser != null)
                proUser.Messages.Add(DateTime.Now, "您好");
        }

        private void button9_Click(object sender, EventArgs e)
        {
          //ControlFace.User   user_小雷 = new ControlFace.User("4", "小雷", "雨田", ControlFace.UserSex.Female, Properties.Resources.head_defalut, "355", string.Empty);
          //user_小雷.State = ControlFace.OnlineState.Online;
          //  proGroup.Users.Add(user_小雷);
        }

    }
}
